
import { userinfoT } from "./interface";
import * as actions from "./action";

// 用户信息
const userInfo: userinfoT = {
  displayName: "",
  userId: "",
};
// token登录
const authorization: string = actions.getToken();

// 初始用户
const guideUser: string = actions.getGuide();

// 公告显示
const noticeVisible: boolean = actions.getNotice();

// 本地待提交日志列表
const logList: Array<any> = [];

// 虚拟头像背景色-随机队列
const portraitBgColor: number = actions.getPortraitBgColor();

// 背景替换-激活项
const replaceBgActive: number = actions.getReplaceBgActive();

export const localeStore = {
  guideUser,
  userInfo,
  logList,
  authorization,
  portraitBgColor,
  replaceBgActive,
  noticeVisible,
  ...actions,
};
